<template>
  <div>
    <div class="header">
      <img src="@/assets/images/return.png" class="header_img" @click="back"/>
      <div class="title">公司</div>
      <div class="save" @click="saveBack">提交</div>
    </div>
    <div class="inputContent">
      <text-area classProp="inputGroup" @sendVal="setValue"></text-area>
    </div>
  </div>
</template>

<script>
  import TextArea from './TextArea'
  export default {
    name: "Company",
    components: {TextArea},
    methods:{
      data(){
        return{
          company:null
        }
      },
      back(){
        this.$router.back()
      },
      saveBack(){
        this.$store.commit('setCompany',this.company)
        this.$router.back()
      },
      setValue(company){
        this.company = company
      }
    }
  }
</script>

<style scoped>
  .header{
    box-sizing: border-box;
    position: relative;
    display: flex;
    height: 90px;
    background-color: #8ec43e;
    align-items: center;
    padding: 0 30px;
  }
  .header_img{
    width: 17px;
    height: 30px;
  }
  .title{
    text-align: center;
    flex: 1;
    font-size: 30px;
    color: #ffff;
  }
  .save{
    font-size: 24px;
    color: #ffffff;
  }
  .inputContent{
    position: relative;
    display: flex;
  }
  .inputGroup{
    box-sizing: border-box;
    height: 80px;
    flex: 1;
    border-radius: 4px;
    margin: 30px;
    font-size: 24px;
    font-weight: 400;
    color:rgba(153,153,153,1);
    padding: 8px;
  }
</style>
